package cn.blog.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import cn.blog.entity.PlayerUser;
import cn.blog.entity.PlayerUserExample;

@Mapper
public interface PlayerUserMapper {
	long countByExample(PlayerUserExample example);

	int deleteByExample(PlayerUserExample example);

	int deleteByPrimaryKey(String puid);

	int insert(PlayerUser record);

	int insertSelective(PlayerUser record);

	List<PlayerUser> selectByExample(PlayerUserExample example);

	@Select("SELECT player_user.puid,player_user.`name` FROM `player_user`")
	List<PlayerUser> queryPKuser();

	@Select("SELECT a.name FROM player_user a WHERE a.puid=#{puid}")
	String selectNameByPuid(String puid);

	PlayerUser selectByPrimaryKey(String puid);

	int updateByExampleSelective(@Param("record") PlayerUser record, @Param("example") PlayerUserExample example);

	int updateByExample(@Param("record") PlayerUser record, @Param("example") PlayerUserExample example);

	int updateByPrimaryKeySelective(PlayerUser record);

	int updateByPrimaryKey(PlayerUser record);
}